package com.ourteam.system.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:23
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class SysResourceDAOQueryBean extends BaseQueryBean {
    public SysResourceDAOQueryBean() {
        super();
    }

    public SysResourceDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public SysResourceDAOQueryBean(BaseQueryBean aQueryBean, Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.Id, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.Id, "id");
        }
    }

    public void addDomainIdSelectProperty() {
        addDomainIdSelectProperty("domainId");
    }

    public void addDomainIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.DomainId, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.DomainId, "domainId");
        }
    }

    public void addParentResourceIdSelectProperty() {
        addParentResourceIdSelectProperty("parentResourceId");
    }

    public void addParentResourceIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.ParentResourceId, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.ParentResourceId,
                "parentResourceId");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.Remarks, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.Remarks, "remarks");
        }
    }

    public void addResourceCodeSelectProperty() {
        addResourceCodeSelectProperty("resourceCode");
    }

    public void addResourceCodeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.ResourceCode, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.ResourceCode, "resourceCode");
        }
    }

    public void addResourceNameSelectProperty() {
        addResourceNameSelectProperty("resourceName");
    }

    public void addResourceNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.ResourceName, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.ResourceName, "resourceName");
        }
    }

    public void addResourceTypeIdSelectProperty() {
        addResourceTypeIdSelectProperty("resourceTypeId");
    }

    public void addResourceTypeIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.ResourceTypeId, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.ResourceTypeId, "resourceTypeId");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.Status, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.Status, "status");
        }
    }

    public void addSortSelectProperty() {
        addSortSelectProperty("sort");
    }

    public void addSortSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.Sort, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.Sort, "sort");
        }
    }

    public void addResourceTitleKeySelectProperty() {
        addResourceTitleKeySelectProperty("resourceTitleKey");
    }

    public void addResourceTitleKeySelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.ResourceTitleKey, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.ResourceTitleKey,
                "resourceTitleKey");
        }
    }

    public void addDomainTitleKeySelectProperty() {
        addDomainTitleKeySelectProperty("domainTitleKey");
    }

    public void addDomainTitleKeySelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceDAO.DomainTitleKey, aAlias);
        } else {
            addSelectProperty(ISysResourceDAO.DomainTitleKey, "domainTitleKey");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addDomainIdSelectProperty();

        addParentResourceIdSelectProperty();

        addRemarksSelectProperty();

        addResourceCodeSelectProperty();

        addResourceNameSelectProperty();

        addResourceTypeIdSelectProperty();

        addStatusSelectProperty();

        addSortSelectProperty();

        addResourceTitleKeySelectProperty();

        addDomainTitleKeySelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<SysResourceDAOQueryBean> {
        protected Criteria(SysResourceDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(ISysResourceDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(ISysResourceDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(ISysResourceDAO.Id + " is not null AND " +
                ISysResourceDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + ISysResourceDAO.Id + " is null OR " +
                ISysResourceDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysResourceDAO.Id + " is null OR " +
                ISysResourceDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Id + " in", Arrays.asList(values),
                    "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Id + " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.Id + " between", value1, value2, "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.Id + " between", value1, value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.Id + " not between", value1, value2,
                "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.Id + " not between", value1, value2,
                "id");

            return this;
        }

        public Criteria andDomainIdIsNull() {
            addCriterion(ISysResourceDAO.DomainId + " is null");

            return this;
        }

        public Criteria andDomainIdIsNotNull() {
            addCriterion(ISysResourceDAO.DomainId + " is not null");

            return this;
        }

        public Criteria andDomainIdIsNotEmpty() {
            addCriterion(ISysResourceDAO.DomainId + " is not null AND " +
                ISysResourceDAO.DomainId + " <> ''");

            return this;
        }

        public Criteria andDomainIdIsEmpty() {
            addCriterion("(" + ISysResourceDAO.DomainId + " is null OR " +
                ISysResourceDAO.DomainId + " = '')");

            return this;
        }

        public Criteria andDomainIdEqualTo(long value) {
            return andDomainIdEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.DomainId + " = ", value, "domainId");

            return this;
        }

        public Criteria andDomainIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdNotEqualTo(long value) {
            return andDomainIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.DomainId + " <>", value, "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToOrIsNull(long value) {
            return andDomainIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andDomainIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysResourceDAO.DomainId + " is null OR " +
                ISysResourceDAO.DomainId + " <>", value, "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdGreaterThan(long value) {
            return andDomainIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andDomainIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.DomainId + " >", value, "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(long value) {
            return andDomainIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.DomainId + " >=", value, "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdLessThan(long value) {
            return andDomainIdLessThan(Long.valueOf(value));
        }

        public Criteria andDomainIdLessThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.DomainId + " <", value, "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(long value) {
            return andDomainIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.DomainId + " <=", value, "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdIn(long[] values) {
            if (values.length == 1) {
                return andDomainIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.DomainId + " in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(long[] values) {
            if (values.length == 1) {
                return andDomainIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.DomainId + " not in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andDomainIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.DomainId + " in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andDomainIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.DomainId + " not in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andDomainIdEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.DomainId + " in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andDomainIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.DomainId + " not in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainId + " not in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.DomainId + " between", value1, value2,
                "domainId");

            return this;
        }

        public Criteria andDomainIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.DomainId + " between", value1, value2,
                "domainId");

            return this;
        }

        public Criteria andDomainIdNotBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.DomainId + " not between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andDomainIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.DomainId + " not between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andParentResourceIdIsNull() {
            addCriterion(ISysResourceDAO.ParentResourceId + " is null");

            return this;
        }

        public Criteria andParentResourceIdIsNotNull() {
            addCriterion(ISysResourceDAO.ParentResourceId + " is not null");

            return this;
        }

        public Criteria andParentResourceIdIsNotEmpty() {
            addCriterion(ISysResourceDAO.ParentResourceId +
                " is not null AND " + ISysResourceDAO.ParentResourceId +
                " <> ''");

            return this;
        }

        public Criteria andParentResourceIdIsEmpty() {
            addCriterion("(" + ISysResourceDAO.ParentResourceId +
                " is null OR " + ISysResourceDAO.ParentResourceId + " = '')");

            return this;
        }

        public Criteria andParentResourceIdEqualTo(long value) {
            return andParentResourceIdEqualTo(Long.valueOf(value));
        }

        public Criteria andParentResourceIdEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ParentResourceId + " = ", value,
                "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ParentResourceId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andParentResourceIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdNotEqualTo(long value) {
            return andParentResourceIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andParentResourceIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ParentResourceId + " <>", value,
                "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdNotEqualToOrIsNull(long value) {
            return andParentResourceIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andParentResourceIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(ISysResourceDAO.ParentResourceId + " is null OR " +
                ISysResourceDAO.ParentResourceId + " <>", value,
                "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ParentResourceId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andParentResourceIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdGreaterThan(long value) {
            return andParentResourceIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andParentResourceIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ParentResourceId + " >", value,
                "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ParentResourceId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andParentResourceIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdGreaterThanOrEqualTo(long value) {
            return andParentResourceIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andParentResourceIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(ISysResourceDAO.ParentResourceId + " >=", value,
                "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ParentResourceId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andParentResourceIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdLessThan(long value) {
            return andParentResourceIdLessThan(Long.valueOf(value));
        }

        public Criteria andParentResourceIdLessThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ParentResourceId + " <", value,
                "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ParentResourceId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andParentResourceIdLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdLessThanOrEqualTo(long value) {
            return andParentResourceIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andParentResourceIdLessThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(ISysResourceDAO.ParentResourceId + " <=", value,
                "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ParentResourceId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andParentResourceIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdIn(long[] values) {
            if (values.length == 1) {
                return andParentResourceIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.ParentResourceId + " in", values,
                    "parentResourceId");

                return this;
            }
        }

        public Criteria andParentResourceIdNotIn(long[] values) {
            if (values.length == 1) {
                return andParentResourceIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.ParentResourceId + " not in",
                    values, "parentResourceId");

                return this;
            }
        }

        public Criteria andParentResourceIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andParentResourceIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ParentResourceId + " in", values,
                    "parentResourceId");

                return this;
            }
        }

        public Criteria andParentResourceIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andParentResourceIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ParentResourceId + " not in",
                    values, "parentResourceId");

                return this;
            }
        }

        public Criteria andParentResourceIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andParentResourceIdEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ParentResourceId + " in",
                    Arrays.asList(values), "parentResourceId");

                return this;
            }
        }

        public Criteria andParentResourceIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andParentResourceIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ParentResourceId + " not in",
                    Arrays.asList(values), "parentResourceId");

                return this;
            }
        }

        public Criteria andParentResourceIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ParentResourceId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andParentResourceIdBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.ParentResourceId + " between", value1,
                value2, "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.ParentResourceId + " between", value1,
                value2, "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdNotBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.ParentResourceId + " not between",
                value1, value2, "parentResourceId");

            return this;
        }

        public Criteria andParentResourceIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.ParentResourceId + " not between",
                value1, value2, "parentResourceId");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(ISysResourceDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(ISysResourceDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(ISysResourceDAO.Remarks + " is not null AND " +
                ISysResourceDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + ISysResourceDAO.Remarks + " is null OR " +
                ISysResourceDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(ISysResourceDAO.Remarks + " = ", value, "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(ISysResourceDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceDAO.Remarks + " is null OR " +
                ISysResourceDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(ISysResourceDAO.Remarks + " >", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.Remarks + " >=", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(ISysResourceDAO.Remarks + " <", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.Remarks + " <=", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.Remarks + " like", buffer.toString(),
                "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Remarks + " in", values, "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Remarks + " not in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Remarks + " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.Remarks + " between", value1, value2,
                "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.Remarks + " not between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andResourceCodeIsNull() {
            addCriterion(ISysResourceDAO.ResourceCode + " is null");

            return this;
        }

        public Criteria andResourceCodeIsNotNull() {
            addCriterion(ISysResourceDAO.ResourceCode + " is not null");

            return this;
        }

        public Criteria andResourceCodeIsNotEmpty() {
            addCriterion(ISysResourceDAO.ResourceCode + " is not null AND " +
                ISysResourceDAO.ResourceCode + " <> ''");

            return this;
        }

        public Criteria andResourceCodeIsEmpty() {
            addCriterion("(" + ISysResourceDAO.ResourceCode + " is null OR " +
                ISysResourceDAO.ResourceCode + " = '')");

            return this;
        }

        public Criteria andResourceCodeEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceCode + " = ", value,
                "resourceCode");

            return this;
        }

        public Criteria andResourceCodeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceCode);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceCodeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andResourceCodeNotEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceCode + " <>", value,
                "resourceCode");

            return this;
        }

        public Criteria andResourceCodeNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceDAO.ResourceCode + " is null OR " +
                ISysResourceDAO.ResourceCode + " <>", value, "resourceCode");

            return this;
        }

        public Criteria andResourceCodeNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceCode);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceCodeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceCodeGreaterThan(String value) {
            addCriterion(ISysResourceDAO.ResourceCode + " >", value,
                "resourceCode");

            return this;
        }

        public Criteria andResourceCodeGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceCode);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceCodeGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andResourceCodeGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceCode + " >=", value,
                "resourceCode");

            return this;
        }

        public Criteria andResourceCodeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceCode);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceCodeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceCodeLessThan(String value) {
            addCriterion(ISysResourceDAO.ResourceCode + " <", value,
                "resourceCode");

            return this;
        }

        public Criteria andResourceCodeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceCode);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceCodeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andResourceCodeLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceCode + " <=", value,
                "resourceCode");

            return this;
        }

        public Criteria andResourceCodeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceCode);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceCodeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceCodeLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.ResourceCode + " like",
                buffer.toString(), "resourceCode");

            return this;
        }

        public Criteria andResourceCodeNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.ResourceCode + " not like",
                buffer.toString(), "resourceCode");

            return this;
        }

        public Criteria andResourceCodeIn(List<String> values) {
            if (values.size() == 1) {
                return andResourceCodeEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceCode + " in", values,
                    "resourceCode");

                return this;
            }
        }

        public Criteria andResourceCodeNotIn(List<String> values) {
            if (values.size() == 1) {
                return andResourceCodeNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceCode + " not in", values,
                    "resourceCode");

                return this;
            }
        }

        public Criteria andResourceCodeIn(String[] values) {
            if (values.length == 1) {
                return andResourceCodeEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceCode + " in",
                    Arrays.asList(values), "resourceCode");

                return this;
            }
        }

        public Criteria andResourceCodeNotIn(String[] values) {
            if (values.length == 1) {
                return andResourceCodeNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceCode + " not in",
                    Arrays.asList(values), "resourceCode");

                return this;
            }
        }

        public Criteria andResourceCodeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceCodeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceCode + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceCodeBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.ResourceCode + " between", value1,
                value2, "resourceCode");

            return this;
        }

        public Criteria andResourceCodeNotBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.ResourceCode + " not between", value1,
                value2, "resourceCode");

            return this;
        }

        public Criteria andResourceNameIsNull() {
            addCriterion(ISysResourceDAO.ResourceName + " is null");

            return this;
        }

        public Criteria andResourceNameIsNotNull() {
            addCriterion(ISysResourceDAO.ResourceName + " is not null");

            return this;
        }

        public Criteria andResourceNameIsNotEmpty() {
            addCriterion(ISysResourceDAO.ResourceName + " is not null AND " +
                ISysResourceDAO.ResourceName + " <> ''");

            return this;
        }

        public Criteria andResourceNameIsEmpty() {
            addCriterion("(" + ISysResourceDAO.ResourceName + " is null OR " +
                ISysResourceDAO.ResourceName + " = '')");

            return this;
        }

        public Criteria andResourceNameEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceName + " = ", value,
                "resourceName");

            return this;
        }

        public Criteria andResourceNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andResourceNameNotEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceName + " <>", value,
                "resourceName");

            return this;
        }

        public Criteria andResourceNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceDAO.ResourceName + " is null OR " +
                ISysResourceDAO.ResourceName + " <>", value, "resourceName");

            return this;
        }

        public Criteria andResourceNameNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceNameGreaterThan(String value) {
            addCriterion(ISysResourceDAO.ResourceName + " >", value,
                "resourceName");

            return this;
        }

        public Criteria andResourceNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andResourceNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceName + " >=", value,
                "resourceName");

            return this;
        }

        public Criteria andResourceNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceNameLessThan(String value) {
            addCriterion(ISysResourceDAO.ResourceName + " <", value,
                "resourceName");

            return this;
        }

        public Criteria andResourceNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andResourceNameLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceName + " <=", value,
                "resourceName");

            return this;
        }

        public Criteria andResourceNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.ResourceName + " like",
                buffer.toString(), "resourceName");

            return this;
        }

        public Criteria andResourceNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.ResourceName + " not like",
                buffer.toString(), "resourceName");

            return this;
        }

        public Criteria andResourceNameIn(List<String> values) {
            if (values.size() == 1) {
                return andResourceNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceName + " in", values,
                    "resourceName");

                return this;
            }
        }

        public Criteria andResourceNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andResourceNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceName + " not in", values,
                    "resourceName");

                return this;
            }
        }

        public Criteria andResourceNameIn(String[] values) {
            if (values.length == 1) {
                return andResourceNameEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceName + " in",
                    Arrays.asList(values), "resourceName");

                return this;
            }
        }

        public Criteria andResourceNameNotIn(String[] values) {
            if (values.length == 1) {
                return andResourceNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceName + " not in",
                    Arrays.asList(values), "resourceName");

                return this;
            }
        }

        public Criteria andResourceNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceNameBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.ResourceName + " between", value1,
                value2, "resourceName");

            return this;
        }

        public Criteria andResourceNameNotBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.ResourceName + " not between", value1,
                value2, "resourceName");

            return this;
        }

        public Criteria andResourceTypeIdIsNull() {
            addCriterion(ISysResourceDAO.ResourceTypeId + " is null");

            return this;
        }

        public Criteria andResourceTypeIdIsNotNull() {
            addCriterion(ISysResourceDAO.ResourceTypeId + " is not null");

            return this;
        }

        public Criteria andResourceTypeIdIsNotEmpty() {
            addCriterion(ISysResourceDAO.ResourceTypeId + " is not null AND " +
                ISysResourceDAO.ResourceTypeId + " <> ''");

            return this;
        }

        public Criteria andResourceTypeIdIsEmpty() {
            addCriterion("(" + ISysResourceDAO.ResourceTypeId + " is null OR " +
                ISysResourceDAO.ResourceTypeId + " = '')");

            return this;
        }

        public Criteria andResourceTypeIdEqualTo(long value) {
            return andResourceTypeIdEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " = ", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTypeId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceTypeIdNotEqualTo(long value) {
            return andResourceTypeIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " <>", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotEqualToOrIsNull(long value) {
            return andResourceTypeIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " is null OR " +
                ISysResourceDAO.ResourceTypeId + " <>", value, "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTypeId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceTypeIdGreaterThan(long value) {
            return andResourceTypeIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " >", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTypeId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualTo(long value) {
            return andResourceTypeIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " >=", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTypeId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceTypeIdLessThan(long value) {
            return andResourceTypeIdLessThan(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdLessThan(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " <", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTypeId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceTypeIdLessThanOrEqualTo(long value) {
            return andResourceTypeIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " <=", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTypeId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceTypeIdIn(long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceTypeId + " in", values,
                    "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdNotIn(long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceTypeId + " not in",
                    values, "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andResourceTypeIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceTypeId + " in", values,
                    "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andResourceTypeIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceTypeId + " not in",
                    values, "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceTypeId + " in",
                    Arrays.asList(values), "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceTypeId + " not in",
                    Arrays.asList(values), "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andResourceTypeIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " between", value1,
                value2, "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " between", value1,
                value2, "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotBetween(long value1, long value2) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " not between",
                value1, value2, "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceDAO.ResourceTypeId + " not between",
                value1, value2, "resourceTypeId");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(ISysResourceDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(ISysResourceDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(ISysResourceDAO.Status + " is not null AND " +
                ISysResourceDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + ISysResourceDAO.Status + " is null OR " +
                ISysResourceDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(ISysResourceDAO.Status + " = ", value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(ISysResourceDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceDAO.Status + " is null OR " +
                ISysResourceDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(ISysResourceDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.Status + " >=", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(ISysResourceDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.Status + " <=", value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.Status + " like", buffer.toString(),
                "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Status + " in", values, "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Status + " not in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Status + " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.Status + " between", value1, value2,
                "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.Status + " not between", value1,
                value2, "status");

            return this;
        }

        public Criteria andSortIsNull() {
            addCriterion(ISysResourceDAO.Sort + " is null");

            return this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion(ISysResourceDAO.Sort + " is not null");

            return this;
        }

        public Criteria andSortIsNotEmpty() {
            addCriterion(ISysResourceDAO.Sort + " is not null AND " +
                ISysResourceDAO.Sort + " <> ''");

            return this;
        }

        public Criteria andSortIsEmpty() {
            addCriterion("(" + ISysResourceDAO.Sort + " is null OR " +
                ISysResourceDAO.Sort + " = '')");

            return this;
        }

        public Criteria andSortEqualTo(int value) {
            return andSortEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceDAO.Sort + " = ", value, "sort");

            return this;
        }

        public Criteria andSortEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Sort);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortNotEqualTo(int value) {
            return andSortNotEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortNotEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceDAO.Sort + " <>", value, "sort");

            return this;
        }

        public Criteria andSortNotEqualToOrIsNull(int value) {
            return andSortNotEqualToOrIsNull(Integer.valueOf(value));
        }

        public Criteria andSortNotEqualToOrIsNull(java.lang.Integer value) {
            addCriterion(ISysResourceDAO.Sort + " is null OR " +
                ISysResourceDAO.Sort + " <>", value, "sort");

            return this;
        }

        public Criteria andSortNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Sort);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortGreaterThan(int value) {
            return andSortGreaterThan(Integer.valueOf(value));
        }

        public Criteria andSortGreaterThan(java.lang.Integer value) {
            addCriterion(ISysResourceDAO.Sort + " >", value, "sort");

            return this;
        }

        public Criteria andSortGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Sort);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortGreaterThanOrEqualTo(int value) {
            return andSortGreaterThanOrEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortGreaterThanOrEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceDAO.Sort + " >=", value, "sort");

            return this;
        }

        public Criteria andSortGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Sort);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortLessThan(int value) {
            return andSortLessThan(Integer.valueOf(value));
        }

        public Criteria andSortLessThan(java.lang.Integer value) {
            addCriterion(ISysResourceDAO.Sort + " <", value, "sort");

            return this;
        }

        public Criteria andSortLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Sort);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortLessThanOrEqualTo(int value) {
            return andSortLessThanOrEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortLessThanOrEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceDAO.Sort + " <=", value, "sort");

            return this;
        }

        public Criteria andSortLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.Sort);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortIn(int[] values) {
            if (values.length == 1) {
                return andSortEqualTo((java.lang.Integer) values[0]);
            } else {
                addCriterion(ISysResourceDAO.Sort + " in", values, "sort");

                return this;
            }
        }

        public Criteria andSortNotIn(int[] values) {
            if (values.length == 1) {
                return andSortNotEqualTo((java.lang.Integer) values[0]);
            } else {
                addCriterion(ISysResourceDAO.Sort + " not in", values, "sort");

                return this;
            }
        }

        public Criteria andSortIn(List<java.lang.Integer> values) {
            if (values.size() == 1) {
                return andSortEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Sort + " in", values, "sort");

                return this;
            }
        }

        public Criteria andSortNotIn(List<java.lang.Integer> values) {
            if (values.size() == 1) {
                return andSortNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.Sort + " not in", values, "sort");

                return this;
            }
        }

        public Criteria andSortIn(java.lang.Integer[] values) {
            if (values.length == 1) {
                return andSortEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Sort + " in",
                    Arrays.asList(values), "sort");

                return this;
            }
        }

        public Criteria andSortNotIn(java.lang.Integer[] values) {
            if (values.length == 1) {
                return andSortNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.Sort + " not in",
                    Arrays.asList(values), "sort");

                return this;
            }
        }

        public Criteria andSortIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.Sort + " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortBetween(int value1, int value2) {
            addCriterion(ISysResourceDAO.Sort + " between", value1, value2,
                "sort");

            return this;
        }

        public Criteria andSortBetween(java.lang.Integer value1,
            java.lang.Integer value2) {
            addCriterion(ISysResourceDAO.Sort + " between", value1, value2,
                "sort");

            return this;
        }

        public Criteria andSortNotBetween(int value1, int value2) {
            addCriterion(ISysResourceDAO.Sort + " not between", value1, value2,
                "sort");

            return this;
        }

        public Criteria andSortNotBetween(java.lang.Integer value1,
            java.lang.Integer value2) {
            addCriterion(ISysResourceDAO.Sort + " not between", value1, value2,
                "sort");

            return this;
        }

        public Criteria andResourceTitleKeyIsNull() {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " is null");

            return this;
        }

        public Criteria andResourceTitleKeyIsNotNull() {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " is not null");

            return this;
        }

        public Criteria andResourceTitleKeyIsNotEmpty() {
            addCriterion(ISysResourceDAO.ResourceTitleKey +
                " is not null AND " + ISysResourceDAO.ResourceTitleKey +
                " <> ''");

            return this;
        }

        public Criteria andResourceTitleKeyIsEmpty() {
            addCriterion("(" + ISysResourceDAO.ResourceTitleKey +
                " is null OR " + ISysResourceDAO.ResourceTitleKey + " = '')");

            return this;
        }

        public Criteria andResourceTitleKeyEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " = ", value,
                "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTitleKey);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTitleKeyEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyNotEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " <>", value,
                "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " is null OR " +
                ISysResourceDAO.ResourceTitleKey + " <>", value,
                "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTitleKey);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTitleKeyNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyGreaterThan(String value) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " >", value,
                "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTitleKey);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTitleKeyGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " >=", value,
                "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTitleKey);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTitleKeyGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyLessThan(String value) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " <", value,
                "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTitleKey);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTitleKeyLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " <=", value,
                "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.ResourceTitleKey);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTitleKeyLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.ResourceTitleKey + " like",
                buffer.toString(), "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.ResourceTitleKey + " not like",
                buffer.toString(), "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyIn(List<String> values) {
            if (values.size() == 1) {
                return andResourceTitleKeyEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceTitleKey + " in", values,
                    "resourceTitleKey");

                return this;
            }
        }

        public Criteria andResourceTitleKeyNotIn(List<String> values) {
            if (values.size() == 1) {
                return andResourceTitleKeyNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.ResourceTitleKey + " not in",
                    values, "resourceTitleKey");

                return this;
            }
        }

        public Criteria andResourceTitleKeyIn(String[] values) {
            if (values.length == 1) {
                return andResourceTitleKeyEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceTitleKey + " in",
                    Arrays.asList(values), "resourceTitleKey");

                return this;
            }
        }

        public Criteria andResourceTitleKeyNotIn(String[] values) {
            if (values.length == 1) {
                return andResourceTitleKeyNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.ResourceTitleKey + " not in",
                    Arrays.asList(values), "resourceTitleKey");

                return this;
            }
        }

        public Criteria andResourceTitleKeyIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTitleKeyBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " between", value1,
                value2, "resourceTitleKey");

            return this;
        }

        public Criteria andResourceTitleKeyNotBetween(String value1,
            String value2) {
            addCriterion(ISysResourceDAO.ResourceTitleKey + " not between",
                value1, value2, "resourceTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyIsNull() {
            addCriterion(ISysResourceDAO.DomainTitleKey + " is null");

            return this;
        }

        public Criteria andDomainTitleKeyIsNotNull() {
            addCriterion(ISysResourceDAO.DomainTitleKey + " is not null");

            return this;
        }

        public Criteria andDomainTitleKeyIsNotEmpty() {
            addCriterion(ISysResourceDAO.DomainTitleKey + " is not null AND " +
                ISysResourceDAO.DomainTitleKey + " <> ''");

            return this;
        }

        public Criteria andDomainTitleKeyIsEmpty() {
            addCriterion("(" + ISysResourceDAO.DomainTitleKey + " is null OR " +
                ISysResourceDAO.DomainTitleKey + " = '')");

            return this;
        }

        public Criteria andDomainTitleKeyEqualTo(String value) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " = ", value,
                "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainTitleKey);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainTitleKeyEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainTitleKeyNotEqualTo(String value) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " <>", value,
                "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " is null OR " +
                ISysResourceDAO.DomainTitleKey + " <>", value, "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainTitleKey);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainTitleKeyNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainTitleKeyGreaterThan(String value) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " >", value,
                "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainTitleKey);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainTitleKeyGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainTitleKeyGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " >=", value,
                "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainTitleKey);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainTitleKeyGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainTitleKeyLessThan(String value) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " <", value,
                "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainTitleKey);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainTitleKeyLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainTitleKeyLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " <=", value,
                "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceDAO.DomainTitleKey);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainTitleKeyLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainTitleKeyLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.DomainTitleKey + " like",
                buffer.toString(), "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceDAO.DomainTitleKey + " not like",
                buffer.toString(), "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainTitleKeyEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.DomainTitleKey + " in", values,
                    "domainTitleKey");

                return this;
            }
        }

        public Criteria andDomainTitleKeyNotIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainTitleKeyNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceDAO.DomainTitleKey + " not in",
                    values, "domainTitleKey");

                return this;
            }
        }

        public Criteria andDomainTitleKeyIn(String[] values) {
            if (values.length == 1) {
                return andDomainTitleKeyEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.DomainTitleKey + " in",
                    Arrays.asList(values), "domainTitleKey");

                return this;
            }
        }

        public Criteria andDomainTitleKeyNotIn(String[] values) {
            if (values.length == 1) {
                return andDomainTitleKeyNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceDAO.DomainTitleKey + " not in",
                    Arrays.asList(values), "domainTitleKey");

                return this;
            }
        }

        public Criteria andDomainTitleKeyIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainTitleKeyNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainTitleKeyBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " between", value1,
                value2, "domainTitleKey");

            return this;
        }

        public Criteria andDomainTitleKeyNotBetween(String value1, String value2) {
            addCriterion(ISysResourceDAO.DomainTitleKey + " not between",
                value1, value2, "domainTitleKey");

            return this;
        }
    }
}
